#Load the library and Create Reference to Library object
require 'test/unit'
require 'watir'
include Watir
include Test::Unit::Assertions

# define variables
testURL = 'http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/DropDown/DropDown.aspx'

puts 'tests execution started'
1.times do
  ie = Watir::IE.new
  ie.goto testURL
  ie.button(:id,'ctl00_SampleContent_TextLabel_dropWrapper').click
  ie.button(:id,'ctl00_SampleContent_Option1').click
  sleep(2)
  assert(ie.text.include?("You selected Mocha Blast."))
  ie.button(:id,'ctl00_SampleContent_Option2').click
  sleep(2)
  assert(ie.text.include?("You selected Java Cyclone."))
  ie.button(:id,'ctl00_SampleContent_Option3').click
  sleep(2)
  assert(ie.text.include?("You selected Dry Fruit."))
  ie.close
end
puts 'tests execution finished'